import util from "../../utils/util.js";

/** 获取收货地址 */
export function AddressList(params) {
  return util.request({
    url: "/account/address/pageList",
    method: 'post',
    params,
  })
}

/** 新增收货地址 */
export function AddAddress(params) {
  return util.request({
    url: "/account/address/add",
    method: 'post',
    params,
  })
}

/** 编辑收货地址 */
export function EditAddress(params) {
  return util.request({
    url: "/account/address/update",
    method: 'post',
    params,
  })
}

/** 编辑收货地址 */
export function DeleteAddress(params) {
  return util.request({
    url: "/account/address/delete",
    method: 'post',
    params,
  })
}

/* 省市区 */
export function AreaList(params) {
  return util.request({
    url: "/common/region/regionTree",
    method: 'post',
    params,
  })
}
